#pragma once
#include "AssetObject.h"
#include <filesystem>

#include <Tinygltf/stb_image.h>
#include <Tinygltf/stb_image_write.h>
namespace YXX_AS
{
	// which can assign to texture asset
	struct Image : AssetObject
	{
		Image() = default;
		Image(const std::filesystem::path& path, bool flip = false);

		bool Init(const std::filesystem::path& path, bool flip = false);

		size_t width;
		size_t height;
		size_t channel;
		float* data;
	};

}